/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
 */
package ims.banking;

import java.util.ArrayList;

public class BankingService {
    private BankingTaskManager manager;

    public BankingService() {
        manager = new BankingTaskManager();
    }

    public void createAccount(String accountNumber, double initialBalance) {

        manager.createAccount(accountNumber, initialBalance, 0.05);
    }

    public boolean deposit(String accountNumber, double amount) {
        return manager.deposit(accountNumber, amount);
    }

    public boolean withdraw(String accountNumber, double amount) {
        return manager.withdraw(accountNumber, amount);
    }

    public double getBalance(String accountNumber) {
        return manager.getBalance(accountNumber);
    }

    public ArrayList<String> listHighPriorityTasks() {
        return manager.listHighPriorityTasks();
    }
}
